package vip.liux.contracts.shared.enums;

import vip.liux.core.enums.IEnum;

/**
 * 消息发送状态
 * <p>
 * 0 - 未投递
 * 1 - 成功
 * 2 - 失败
 * 3 - 回执
 */
public enum SendStatus implements IEnum {
    PENDING(0, "未投递"),
    SENT(1, "成功"),
    FAILED(2, "失败"),
    EXPIRED(3, "回执");


    final int value;

    final String desc;

    SendStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
